package org.spring.springboot.app.community.structure.service;

import io.swagger.annotations.ApiParam;
import org.spring.springboot.app.community.structure.domain.po.CommunityStructurePO;
import org.spring.springboot.app.community.structure.domain.vo.*;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * 逻辑接口类
 * <p>
 * Created by bysocket on 07/02/2017.
 */
public interface ICommunityStructureService {

    List<CommunityStructurePO> findByParentId(String parent_id);

    List<CommunityStructureHouseVO> findHouseByFloorId(String floorId);

    CommunityStructurePO findById(String id);

    String findByParent(String id);

    CommunityStructureHouseVO findHouseById(String houseId);

    int saveBuild(CommunityStructureBuildVO vo);

    int saveFloor(CommunityStructureFloorVO vo);

    int saveHouse(CommunityStructureHouseVO vo);

    int updateBuild(CommunityStructurePO po);

    int updateFloor(CommunityStructurePO po);

    int updateHouse(CommunityStructureHouseUpVO vo);

    int deleteByParentIds(String id);

    int deleteFloor(String id);

    int queryByIdAndType(String id,String sort, String type);

    int fastSaveBuild(CommunityStructureFastVO vo);

    Integer findMaxSort(String parentId,String type);
}
